import express from "express";
import apicache from "apicache";
import mail from "../services/mail/index.js";

const router = express.Router();
const cache = apicache.middleware; // 接口缓存中间件

// router.post("/sendCode", cache("5 minutes"), mail.P("sendCode"));
router.post("/sendCode", mail.P("sendCode"));

export default router;
